package test.util;

public class ToCharacterArray {
    public static Character[] stringTransform(String string) {
        Character[] chars = new Character[string.length()];
        for (int i = 0; i < string.length(); ++i) {
            chars[i] = string.charAt(i);
        }
        return chars;
    }
    public static Character[] charArrayTransform(char[] array) {
        Character[] chars = new Character[array.length];
        for (int i = 0; i < array.length; ++i) {
            chars[i] = array[i];
        }
        return chars;
    }
}
